package com.castle.fortress.admin.contract.review.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.contract.review.entity.ContractReviewEntity;
import com.castle.fortress.admin.contract.review.dto.ContractReviewDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 合同审核记录表 服务类
 *
 * @author 
 * @since 2025-04-23
 */
public interface ContractReviewService extends IService<ContractReviewEntity> {

    /**
     * 分页展示合同审核记录表列表
     * @param page
     * @param contractReviewDto
     * @return
     */
    IPage<ContractReviewDto> pageContractReview(Page<ContractReviewDto> page, ContractReviewDto contractReviewDto);


    /**
     * 展示合同审核记录表列表
     * @param contractReviewDto
     * @return
     */
    List<ContractReviewDto> listContractReview(ContractReviewDto contractReviewDto);
    
    /**
     * 根据合同ID查询审核记录
     * @param contractId 合同ID
     * @return 审核记录实体
     */
    ContractReviewEntity getByContractId(Long contractId);

}
